﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LicenseList.aspx.cs" Inherits="Manage_System_LicenseList" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" type="text/css" />
    <title>许可证列表</title>
</head>
<body>
<%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
<%=ManageHelper.PageErrMsg()!=""?"<div class='msg_failed'>"+ManageHelper.PageErrMsg()+"</div>":""%>
<div class="column">
    <div class="columntitle">管理许可证</div>
	<table cellspacing="0" cellpadding="0" rules="all" Align="center" border="0" id="MyDataGrid" style="border-width:0px;width:100%;border-collapse:collapse;">
	<tr class="summary-title" style="height:25px;">
	    <td align="center">编号</td>
		<td>域名</td>
		<td>服务器IP</td>
		<!--<td>激活状态</td>-->
		<td>激活时间</td>
		<td>创建时间IP</td>
		<td>操作</td>
	</tr>
	<%
        foreach (KeRui.Model.SysLicense model in listSysLicense)
    {
	%>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';" style="height:25px;">
		<td align="center"><%=model.LicenseID%></td>
		<td><%=model.Domain%></td>
		<td><%=model.ServerIP%></td>
		<!--<td><%=model.IsActivated.ToString().Replace("0", "没有激活").Replace("1", "<font style='color:red'>激活</font>")%></td>-->
		<td><%=model.ActivateTime%></td>
        <td><%=model.CreateTime%></td>
		<td>
		    <%if (model.IsActivated == 0)
        {%>
		    <a href="javascript:ymPrompt.win('licenceitem.aspx?act=edit&id=<%=model.LicenseID %>',450,350,'修改许可证',null,null,null,true);" onclick="">修改</a> 
| 
		    <a href='licenceitem.aspx?id=<%=model.LicenseID %>&act=del' onClick="javascript:return confirm('此操作将会删除域名为“<%=model.Domain %>的产品许可证”，确认吗？');">删除</a>
		    <%}
        else {
            Response.Write("<span style='color:Maroon'>已激活</span>");
        } %>
		</td>
	</tr>
	<%
	} 
	%>
    </table>	
</div>
<table cellpadding="0" cellspacing="0" width="90%" >
	<tr>
	    <td align="left">
		    <input type="button" onclick="ymPrompt.win('licenceitem.aspx',450,350,'添加许可证',null,null,null,true);"  value="添 加" class="button" />
	    </td>
	</tr>
</table>
</body>
</html>
